package com.yudean.esb.security;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yudean.esb.domain.sys.AppUser;

public interface AppUserService extends IService<AppUser> {

    /**
     * 根据条件分页查询
     * @param currentPage
     * @param pageSize
     * @param appUser
     * @return
     */
    IPage<AppUser> getPage(Integer currentPage, Integer pageSize, AppUser appUser);

    /**
     * 修改账户信息
     * @param user
     * @return
     */
    int updateSysAppUser(AppUser user);

    /**
     * 查询用户表（esb.sys_appuser）最大id值
     * @return
     */
    int selectMaxId();

    /**
     * 创建用户
     * @param appUser
     * @return
     */
    int createUser(AppUser appUser);
}
